package com.menchao.carsales.pojo;

import java.util.Date;

/**
 * Porject: carsales
 * Date: 2021/7/28
 * Author: menchao
 * Description:
 */

public class Customer {

    private Long id;

    private String name;

    private String phone;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name==null?name:name.trim();

    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone==null?phone:phone.trim();
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard==null?idCard:idCard.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    private String idCard;

    private Date createTime;

    public Customer() {
        super();
    }

    public Customer(Long id, String name, String phone, String idCard, Date createTime) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.idCard = idCard;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", idCard='" + idCard + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
